//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.imagemanager.util;

import android.graphics.Bitmap;

public abstract class Texture {
    public static final int STATE_UNLOADED = 0;
    public static final int STATE_QUEUED = 1;
    public static final int STATE_LOADING = 2;
    public static final int STATE_LOADED = 3;
    public static final int STATE_ERROR = 4;
    int mState = 0;
    int mId;
    int mWidth;
    int mHeight;
    float mNormalizedWidth;
    float mNormalizedHeight;
    Bitmap mBitmap;

    public Texture() {
    }

    public boolean isCached() {
        return false;
    }

    public final void clear() {
        this.mId = 0;
        this.mState = 0;
        this.mWidth = 0;
        this.mHeight = 0;
        this.mNormalizedWidth = 0.0F;
        this.mNormalizedHeight = 0.0F;
        if(this.mBitmap != null) {
            this.mBitmap.recycle();
            this.mBitmap = null;
        }

    }

    public final boolean isLoaded() {
        return this.mState == 3;
    }

    public final int getState() {
        return this.mState;
    }

    public final int getWidth() {
        return this.mWidth;
    }

    public final int getHeight() {
        return this.mHeight;
    }

    public final float getNormalizedWidth() {
        return this.mNormalizedWidth;
    }

    public final float getNormalizedHeight() {
        return this.mNormalizedHeight;
    }

    protected boolean shouldQueue() {
        return true;
    }

    public boolean isUncachedVideo() {
        return false;
    }
}
